﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
namespace Jemer.Domain.Entities
{
    //用户信息表
    public class UserInfo
    {

        /// <summary>
        /// 用户编号，自增长
        /// </summary>
        [Key]
        [Required]
        [MaxLength(4)]
        public int UserID { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>

        [Required]
        [MaxLength(20)]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>

        [Required]
        [MaxLength(20)]
        public string Password { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>

        [Required]
        [MaxLength(50)]
        public string Email { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>


        [MaxLength(50)]
        public string NickName { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>


        [MaxLength(50)]
        public string RealName { get; set; }

        /// <summary>
        /// 手机
        /// </summary>


        [MaxLength(20)]
        public string MobilePhone { get; set; }

        /// <summary>
        /// 电话
        /// </summary>


        [MaxLength(20)]
        public string Phone { get; set; }

        /// <summary>
        /// 性别
        /// </summary>


        [MaxLength(1)]
        public bool Sex { get; set; }

        /// <summary>
        /// 省
        /// </summary>


        [MaxLength(50)]
        public string Province { get; set; }

        /// <summary>
        /// 市
        /// </summary>


        [MaxLength(50)]
        public string City { get; set; }

        /// <summary>
        /// 区
        /// </summary>


        [MaxLength(50)]
        public string County { get; set; }

        /// <summary>
        /// 地址
        /// </summary>


        [MaxLength(200)]
        public string Address { get; set; }

        /// <summary>
        /// 邮编
        /// </summary>


        [MaxLength(20)]
        public string ZipCode { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>


        [MaxLength(8)]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 是否可用
        /// </summary>

        [Required]
        [MaxLength(1)]
        public bool IsEnable { get; set; }

        /// <summary>
        /// 是否已删除
        /// </summary>

        [Required]
        [MaxLength(1)]
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 备注
        /// </summary>


        [MaxLength(200)]
        public string Remark { get; set; }


    }
}

